<template>
  <div id="app">
    <!-- <GGG ref="gRef" /> -->
    <el-config-provider :locale="zhCn">
      <router-view />
    </el-config-provider>
  </div>
</template>

<script lang="ts">
import GGG from '@/components/ggg/ggg.vue';
import { ElConfigProvider } from 'element-plus';

import { defineComponent, ref, onMounted } from 'vue';
import zhCn from 'element-plus/lib/locale/lang/zh-cn';

export default defineComponent({
  setup() {
    const gRef = ref<InstanceType<typeof GGG>>();

    onMounted(() => {
      gRef.value?.sayH();
    });

    return {
      gRef,
      zhCn,
    };
  },

  components: {
    // GGG,
    ElConfigProvider,
  },
});
</script>

<style lang="less" scoped></style>
